package id.co.shuba.spamobile.task;

public class LoginStatus {
	public static final int STATUS_RETRY = 1;
	public static final int STATUS_EXIT = 2;
	public static final int STATUS_OFFLINE = 3;
	public static final int STATUS_ERROR = 4;
	public static final int STATUS_SUCCESS = 5;
	
	private int _status;
	private String[] _params;
	private Exception _ex;	
	
	public int getStatus() {
		return _status;
	}
	
	public String[] getParams() {
		return _params;
	}
	
	public Exception getError() {
		return _ex;
	}

	public LoginStatus(int status) {
		this(status, null);
	}
	
	public LoginStatus(int status, String[] params) {
		_status = status;
		_params = params;
	}
	
	public LoginStatus(int status, String[] params, Exception ex) {
		_status = status;
		_params = params;
		_ex = ex;
	}
	
	
}